package com.util.auth.impl;
import java.util.HashMap;


import com.util.auth.ParseParamFactory;



public class ParseParamFactoryImpl implements ParseParamFactory
{
	public	HashMap<String, String>getParameters(String str)
	{
		HashMap<String,String> hashmap = new HashMap<String, String>();
		if (str.isEmpty() == false) {
			String[] split = str.split("#");
			for(int i=0;i<split.length;i++)
			{
				String key = split[i].substring(0,split[i].indexOf("="));
				String value = split[i].substring((split[i].indexOf("=")+1));
				hashmap.put(key,value);
			}
		}
		return hashmap;
	}
}                                                                                                                                                                                                                                